/**
 * @(#)com.pattern.p_03_decorated.humburger.Lettuce
 *
 * Copyright (c) 2014-2018 上海纬视瑞科技有限公司
 *
 * DESC:
 *
 */
package com.pattern.p_03_decorated.humburger;

/**
 * @author fusf
 * @version 1.0  2016/11/7
 */
public class Lettuce extends Condiment {

    Hamburger hamburger;

    public Lettuce(Hamburger hamburger) {
        this.hamburger = hamburger;
    }

    @Override
    public String getName() {
        return hamburger.getName() + "生菜";
    }

    @Override
    public double getPrice() {
        return hamburger.getPrice() + 1.5;
    }
}
